<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<script>
		var foo = 1;
		(function(){
		    console.log(foo);
		    var foo = 2;
		    console.log(foo);
		})();

		
	</script>
	<body>
	</body>
</html>
